/*
 * @Author: yangzonglong
 * @Date: 2021-03-01 13:18:46
 * @version: v1.0.0
 * @Descripttion:
 * @LastEditors: yangzonglong
 * @LastEditTime: 2021-08-18 15:26:28
 * @Auditor:
 */
import React, { useImperativeHandle, forwardRef } from 'react';

const border = { border: '1px dashed #ccc' };
const height = { height: 'auto' };

const App = (props, ref) => {
  const { formItemProps } = props;

  useImperativeHandle(ref, () => {});
  
  return (
    <div className="adjustSpacing" {...formItemProps} style={{ ...formItemProps?.style, ...height }}>
      <div
        style={{
          ...border,
          height: formItemProps?.style?.height,
        }}
      ></div>
    </div>
  );
};

export default forwardRef(App);
